package Dtss;

import java.util.ArrayList;

public class Team {
    private int programmerNumber;
    private int architectNumber;
    private int designerNumber;
    public ArrayList<TeamMember> teamMemberArrayList = new ArrayList<>();
    private int nextId = 1;

    public int getNextId() {
        return nextId;
    }

    public void setNextId() {
        this.nextId ++;
    }


    public Team() {}

    public void setProgrammerNumber(boolean flag) {
        if (flag) {
            this.programmerNumber --;
        } else {
            this.programmerNumber ++;
        }
    }

    public void setArchitectNumber(boolean flag) {
        if (flag) {
            this.architectNumber --;
        } else {
            this.architectNumber ++;
        }
    }

    public void setDesignerNumber(boolean flag) {
        if (flag) {
            this.designerNumber --;
        } else {
            this.designerNumber ++;
        }
    }

    public Team(int programmerNumber, int designerNumber, int architectNumber) {
        this.programmerNumber = programmerNumber;
        this.architectNumber = architectNumber;
        this.designerNumber = designerNumber;
    }

    public int getProgrammerNumber() {
        return programmerNumber;
    }

    public int getArchitectNumber() {
        return architectNumber;
    }

    public int getDesignerNumber() {
        return designerNumber;
    }

}
